package com.twu.biblioteca;

import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/9/13
 * Time: 9:44 AM
 * To change this template use File | Settings | File Templates.
 */
public class Loader {

    public Map<String, Integer> loadBooks() {
        Map<String, Integer> bookList = new BookMap<String, Integer>();
        bookList.put("Book 1", 2);
        bookList.put("Book 2", 0);
        return bookList;
    }

    public Collection<Movie> loadMovies() {
        Collection<Movie> movieList = new ArrayList<Movie>();
        movieList.add(new Movie("Sholay", "1975", "Ramesh Sippy", "N/A"));

        return movieList;
    }

    public Map<String, UserAccount> loadUsers() {
        Map<String, UserAccount> userList = new HashMap<String, UserAccount>();

        userList.put("111-1111", new UserAccount("password", "Vivian", "vso@thoughtworks.com", "416-721-0711"));
        userList.put("111-1112", new UserAccount("password2", "Alexandra", "aprice@thoughtworks.com", "123-456-7892"));

        return userList;
    }
}
